If you get the error: X11/extensions/XTest.h: No such file or directory, install: sudo apt-get install libxtst-dev