polyc: fail if linking fails