Removed code generating compile errors on windows