Changed three build flags to MIN_VERSION macros.

Should now build on Stackage with GHC 7.4.2.