Replace uname hack with checking the preprocessor.