Adds MacOSX extenstion and standardizes on GCC stdlib