looking into http://stackoverflow.com/questions/4929255/building-static-libraries-on-mac-using-cmake-and-gcc