update podspec, fix errors when including as cocoapod