Removed many GCC compiler warnings