rbutil: move extern "C" declaration into mkamsboot.h