Use #if, not #ifdef with HAVE_ macros