fix integral type for older version of memcpy. fix ghc 7.4.x