Fix test and export libs during compile so they're available for other scripts during compile