Fix single-file compilation. Closes #43