Dynamic linker trickery to add a wrapper function around an existing function defined in other library/program