Fix standalone builds

Closes #2.