Setup build system.

Closes #2