Address compiler warnings

Also remove unused PassManager reference