Allow flags in extension class compilation (Issue #122)