Fixed linux compilation errors
Introducing SHA1 for device ID