lib/klaatu: add support for new window library