Fixed build problems with WindowMaker