adding BUILD_DIR fix
fix warnings and missing frameworks fro afnetworking 1.3.1