Fixed X11 Linking in template makefile.

Issue documented here: https://github.com/ivansafrin/Polycode/issues/363
Tested on Debian, Linux Mint 15, Cinnamon.