Switch to a non-recursive build

Closes #397