Modify cmake files for mbelib and dsd to make them build as static libraries.