Fixed issues with latest SDK
Corrected invalid parameter handling in getLocalDeviceVersion()
Corrected exception raised by invalid reference counting