First stab at cmake based build
Added better WIN32 ifdefs to stdafx.h
Added Xerces and XQilla dependency checks