Fix libdumb search paths and missing -lm on unix systems