Add bindings for mysql_{library,thread}_{init,end} functions