dirty gcc4.7+ compile fix