fixing some gcc 4.4 ambiguities