Merge pull request #69 from chertov/master

Windows Service support
fixed warning
proper termination
flush log only when queue is empty
eliminate boost::protect
load IdentHash from base32 string
revert commit 61001ef
fix crash
fix CMAKE build
Merge pull request #70 from cpubug/master

fix CMAKE build
rolled back
fixed creash
Merge pull request #4 from orignal/master

Merge pull request from orignal/master