Xdev build fix plus make an error a little more informative