fixing gcc build