wm: fix compile errors