Set temporary libpath in build.
Fixes #335