fix build for wm/ce