wm: fix shared runtime build