Fix API version comparison
remove reference to uninitialized variable and extra parameter in function call
Merge pull request #181 from dangra/strict-version

Fix API version comparison for 1.10