Not including libgen.h breaks 64bit builds (probably because the compiler assumes...