Update Main.hs

Some more changes to compile succesfully under GHC 7.6