Fixed gcc 4.6 warnings.