Fixed some things so that the project would compile properly on windows (not tested with the python module).