Changed #if to #ifdef to fix cabal-dev build failure