Gracefully handle compilation in Release mode

Closes #2