bwm-ng: add patch to fix GCC 7.x compatibility