Fix bug with build script and lib path