Set up preproccessor directives for cross-platform code