fixing gcc version issues