Change the DirectXRender namespace to Cocos2dWindowsPhone. It conflicts with the cocos2d namespace.