Try to make all code POSIX compliant