Support source pointers for ERC calculation
Do proper piping of output
Remove usage of LD_library path