fix compilation errors/typos