build scripts: supporting static build with thirdparty libs on linux.
update ChangeLog.
deployer: minimize the chance of race conditions.
fix a crash on synching data to an inaccessible device.