fix ifdef for windows