Fix bulding of debug libs on install w/o debugging