Added static version and fixed XCode 5.0 compile issues