Added an ifdef to a part only needed on Windows