Compass: bug fix to init of device id

Also init members to reduce compiler warnings
Git: ignore Thumbs.db

These files can be created automatically on Windows machines and are
difficult to remove