Fix a typo causing doble free error in ks_memdb_destory()
Change all _int to _num
Update Makefile