Added preprocessor ifdef for windows unit