Fix a couple of compile errors