ffi-yajl and other fixes