fix linking bug for android