debmaker: improve finding of libraries