Build fixes for WindowsCE