PreBuildEvent to set up a static Defines.cs needed for compilation