Remove unnecessary functional dependencies making it very hard to give a valid instance (and this fixes compilation in GHC >= 7.7)
Remove -fglasgow-exts and add used extensions explicitly to fix compilation for GHC 7.8