Add proper dependency checking, so that parallel builds work.

This also lets you build individual library files, rather than aliases.
Add support for building and using shared libraries.
Fix (my) review feedback from GitHub.
More fixes for dependencies, and to be more consistent.
Add requirement on libpjmedia to libpjsdp.
Add support for using external libsrtp.