Build against system libraries when possible