compositor: Fix build

QMouseEvent and QKeyEvent are not declare, include the headers
to fix the build error.

Issue: #139