Fix compiler:build-program and FFI interface to ensure
proper creation of GUI stand-alone applications on Win32 and Win64.