Fixed few compile errors and warnings on windows