Removed xerror handler function for now. I'd hardly call that working on older systems.