Fixed some build warnings and errors, particularly some unused variable warnings, and a non-existent error variable in Dropbox file system.