Index: /trunk/src/bldprogs/Makefile.kmk
===================================================================
--- /trunk/src/bldprogs/Makefile.kmk	(revision 57897)
+++ /trunk/src/bldprogs/Makefile.kmk	(revision 57898)
@@ -62,5 +62,7 @@
 endif
 
-BLDPROGS.win += VBoxPeSetVersion
+ifeq ($(KBUILD_TARGET),win)
+ BLDPROGS += VBoxPeSetVersion
+endif
 VBoxPeSetVersion_TEMPLATE = VBoxBldProg
 VBoxPeSetVersion_SOURCES  = VBoxPeSetVersion.cpp
Index: /trunk/src/bldprogs/VBoxPeSetVersion.cpp
===================================================================
--- /trunk/src/bldprogs/VBoxPeSetVersion.cpp	(revision 57897)
+++ /trunk/src/bldprogs/VBoxPeSetVersion.cpp	(revision 57898)
@@ -20,5 +20,11 @@
 *   Header Files                                                                                                                 *
 *********************************************************************************************************************************/
-#include <Windows.h>
+#ifdef RT_OS_WINDOWS
+# include <Windows.h>
+#else
+# include <iprt/stdint.h>
+# include "../VBox/Runtime/include/internal/ldrPE.h"
+# include "../VBox/Runtime/include/internal/ldrMZ.h"
+#endif
 #include <stdio.h>
 #include <string.h>
