Fix compile warning when included as library in cocopods