add submodule for BAFoundation
Replace BAFoundation files with BAFoundation submodule and link in libBAFoundation.