OSX compile support added