Fix Python scripts that do not run
GPD port to WIN32

* export symbols
* read files in binary mode
pvr port to WIN32

* mostly export symbols
* a few changes to make VC++ 10 happy