Fix preprocessor defines for compilation