Added support for MAC OS X operating systems since they do not fully
comply with POSIX. There are no barrier types in the pthread library for
OS X.