Fix a couple compile errors, add some reference paths