Fix for sdk < 11

All credit goes to diasrafael (https://github.com/diasrafael)
Merge pull request #17 from JoniDS/patch-1

Fix for sdk < 11