Generalize build.jl to find more pre-existing libraries on Linux