changes to compile for windows