avoid compilation error of random-1.0.1.3 on GHC-7.4