fixed version checking for posix