Made PreBuild event conditional to only run on Windows