Updated libcore - some fixes for build under MinGW