Fixes trac #952: Haskell requires consistent overflow behaviour, which gcc doesn't give without this flag.