Fixed assert on Win8.1. Thanks to jonwfreeman.
Merge pull request #32 from madevgeny/master

Fixed assert on Win8.1. Thanks to jonwfreeman.