Updated to use dladdr() to find ourselves if possible