bug fix: moved OS X library installation block before gcc command