First MSVC work

* Consistent RPOKESAV_API usage (mistakes don't affect Linux builds)
* Added pragma to remove MSVC warnings for C4251