Fix compiler warnings on Windows