compile on windows, get rid of warnings