Fix program exit code for -DLINUX
Fix lit tests execution