Addressing warnings for GCC compiler