Fixed gcc warnings.