Make Core compile in Qt5