CM_VERSION --> XP_VERSION, add -O3 optimizations