CMakeLists.txt: Enable flags on FreeBSD like it's done on Linux
Link to libX11 (${X11_X11_LIB})