Back to libwnck plus various fixes

Git also complained about trailing whitespace.

Update: I also added various fixes so that make distcheck passes.