Add building for debug version of static library