Fix method lookup on lib types