Using spawnv() instead of spawnve() which was having problems on win64.
Avoiding the APPLET_IS_NOEXEC block which was causing problems on win64.