Fixed global variable deprecation warnings
Merge pull request #1 from jakub-klapka/master

Fixed global variable deprecation warnings