Don't build Foundation if SKIP_FOUNDATION is defined.

Closes #18