Add script to build debug version of libraries