Fix up probes in static functions. This only works for shared libs at
the moment.