Fixed some gcc warnings