Cleaned up GCC warnings and errors.