Fix configuration for Release.
Use move semantics in Optional implementation.