in reply to Compile time problem

One solution is to move the problem code into a module and include the module conditionally.