static and dynamic compiles working on mac on both gmake and xcode4