BUG: compile random in lfs mode

randomkit.c uses fopen which requires LFS mode to support larger than 64
bit files on 32 bit systems.
Merge pull request #4165 from juliantaylor/lfs-mtrand

BUG: compile random in lfs mode