fix 3rd part building bug

Change-Id: Ie09f53d75e1a885b8fca0a586d44a78a4a331589