ffi: move guard in the AbstractCompiler