Fix errors in trimmer disallowing compilation