Added support for amalgamation builds.