update podspec and fix build warnings