Compile fixes, start work on mouse event support