Add support for shared library profiling.