Update podspec and some build errors