manual: fix compilation errors and warnings