added framework dependencies as optional so the project works in ios5