made framework build for OS X & iOS 8