Fixed namespace/declaration issues in the Windows version. The windows binaries are compiling successfully from Linux using MinGW.