change agentlib to agentpath

In Linux, using agentlib will lead to find libgcprof.so, which is not present. By using agentpath, it is OK.