wmcube: use wmgeneral functions in libdockapp instead of the private copy.