fixed link error in device build