change from thd_alloc() to other way.
Fix lost libmrn_need_mysql_la_SOURCES from Makefile.
Fix using uninitialized value at adding index.