Fix conditional compilation for tmpnam.