Use cmake to find dl, X11, and pthreads