firmware-utils: mkfwimage: fix build failure on macOS with gcc 9