main: fixed errors linked to leading underscores in MinGW builds.