added support for amalgamated builds