Merge pull request #38 from matsu911/master

Avoid crash in case of no 'window' property in app delegate
Fix unused function warning, close #39
Version bump (1.5.1)