add generated src, allow parallel builds - closes #24

NB. a proper solution for this would be to use a single
top-level Makefile with all dependencies.

Also add various includes and defines for c99 (since objects
are no longer shared)