Add "c++abi" to required libraries as well
Added checking for profiling