add a failsafe check for third party recompilations

Change-Id: I345833d1c3ce0ad5d13642cb89492a655b2d638f