build: several build simplifications

Closes #4