Platform cleanup

Updated Apple platform and assuming POSIX standards under Linux or UNIX