update compile_scripts.php, fix win32 compile errors