okay, got it to compile with Microsoft Visual Studio
more fixes
more fixes for MSVC
add #define to get MSVC to shut the fuck up about "deprecated" POSIX
functions.