allow to compile with amalgamation=yes