compilation changes for windows