Fix autogen.sh for OSX
Fix decode symbol not found on OSX
Add use_threads and owns_message to context. Set use_threads = 0, to fire callback in main loop. Set owns_message = 0, to have caller manually free message and payload