Compatibility fix for GHC 7.6.

Since base 4.6.0.0, Num is no longer a requirement for Bits, so we need additional Num constraints in Data.Bitlib.