Fixed build errors.
cmake: Moved video plat detection to env.cmake.
task: Shelled graph, very basic.
More brainstorming about tasks and main loops.
cmake: gcc-compat flags update.
Fixed pedantic build errors.

These snuck in while the build flags were wonky.
Shelled main-loop project.

This includes the common bit and the linux/x11-specific bit.
Started poking around at main loop.
Decided on a course of action to address input timings in the face of ogl/mswin/intel.
task scheduler: Fixed high-bit calc in serial.
Shelled a little about the various clocks we'll need.
More brainstorming about input in main loop.
Misc small comment cleanups.
Ported lilliput for byte swapping.
Merge branch 'byte-order'
Merged from master.