Add preprocessor stuff to make compile work