In my build.gradle I have it compiling the source with the correct compiler flags but the build fails because I did not declare how to link in the external C++ static and shared libraries. What is the correct way to declare external static and shared libraries?