Fixed warnings given by gcc version 4.6.3