Replace the python scripts for building the shared lib and tests with a Makefile, which makes it easier to handle a mix of C and C++.