Defer (window-system) check until a buffer is opened

Fixes #2