fix xwared won't compile on Ubuntu