fix gcc-4.7+ detection for MRI 1.8 / REE, fix #1780
NEXT: 1.19.2 with 1780