Add inherited=false to const lookups when not 1.8