Fix compiler warnings for the x64 build.
use the improved and fixed reader/writer lock from TSVN.
convert tabs to spaces.
* use a better, reentrant reader/write section class * refresh the UI in a timer interval