Fix Windows release target
disable logging by default
Add some basic unit tests (enabled only if -DUNIT_TESTS at compile time).