added get-ppid function for Windows.
updated build.bat