Fix compiler warnings
Set GHC flags