fix compilation errors in learn project