Fixes various GHC warnings