Added support for XNA; use at your own risk.