First commit fixes Notes so it builds and runs.
Second commit makes it work better, granting it access to DRI.