Fix a few preprocessor warnings.

Some defines are not available until configure has been run.