Merge pull request #573 from ricl/dev-0.3

patch until node-webkit and windows 8 maximse/unmaximize works correctly