Let init_database link to libcommon.la
Cannot fix cmake to let gen_IM_data link to porting_layer.