we don't use realpath() anymore so there is need for a special mingw include
extra source no longer required
remove unnecessary recently-added include for realpath, which is not actively used
add (likely, partial) windows implementation of POSIX realpath() for COMPILER_MINGW where the latter is not available, to the only place realpath() is used