add POSIX definition for mac os x