fix preprocessor warnings