Fixed gcc warnings