Improved standalone library build.