Improved library compilation when using as a git submodule.