bmx6: fix gcc6&7 warnings, avoid json-c patch