fix compile errors
fixing compilation on windows