resolve gcc errors