fixes #7250 per description. works for code::blocks now.
Merge remote-tracking branch 'cSep/fix7250' into FrankenMod
cmath causes problem with abs using MinGW-w64, so removed extra check.