Add the -pg flag to CMAKE_SHARED_LINKER_FLAGS_PROFILE to fix the profiling build.