Fixed warnings generated by gcc 4.7