compile guards for windows