Resolving compiler warnings on gcc 4.7