diff --git a/os/macosx/plistgen.sh b/os/macosx/plistgen.sh
index 237901eb86..51059d3312 100755
--- a/os/macosx/plistgen.sh
+++ b/os/macosx/plistgen.sh
@@ -31,7 +31,7 @@ echo "
CFBundleInfoDictionaryVersion
6.0
CFBundleName
- ottd
+ OpenTTD
CFBundlePackageType
APPL
CFBundleShortVersionString
diff --git a/stdafx.h b/stdafx.h
index da8f1e88ba..b085d18f81 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -24,7 +24,8 @@
#include
// MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal
-#if !defined(__APPLE__)
+// strgen always runs from terminal and don't need a window for asserts
+#if !defined(__APPLE__) || defined(STRGEN)
#include
#else
#include "os/macosx/macos.h"