build with amalgamation