small updates

two small updates.
First checks dependency before building,
Second sets WM_NAME on the window. 

R,

Q