Added a hack to bypass FOPEN_MAX limit of Posix standart

https://lists.freebsd.org/pipermail/freebsd-arch/2008-February/007705.html