[WIP] the core library and the backends compile

Now, just need to debug 17k lines of type error when compiling the
command-line tool (IrminCLI) ...