add bcond to enable/disable unittests build

unittests are otherwise built automatically if sane g++ is found