fix POSIX incompatible codes #2