Fix #672: External build breaks if library path has spaces