fix unittests linling for linux
compiler-dependend code change