remove extraneous declarations on windows