Modify Setup.hs to (correctly?) determine NI support.

The Setup.hs system now checks in the buildHook if -maes is supported
and, if so, set the proper flags.

I could add a long rant about cabal and compiler flags not being the smoothest
path to trot down, but don't think I would say anything surprising.