Removed useless extensions and added safe haskell flag