made copy to clipboard work in windows. fixes #46