Use 'extern "C"' in libbootimg.h