respect CompilerFlags in more places

motivation: so Tortoise won't depend on ASM