fixing gcc issues