Fix compiler failure and add podspec