Fix build problems with GHC 7.4 (gh-1)

Thanks to Bob Ippolito for reporting this. Oops!
Relax version constraint on text
implemented insertWithKey