Add `lto` option to profiles.

Closes #759.

I'm not sure if I did this right!