Fixed compiler warning (deprecated API call).
Merge pull request #1 from markuspalme/master

Fixed compiler warning (deprecated API call).