CMakeLists.txt:
 -changed the 'elif' to 'elseif' because it doesn't work for cmake > 2.6 (specified version).
 -Added missing flags for linux (X11 pthread Xrandr)