improved compiler selection, fix #1731
NEXT: 1.19.2 with 1731