Fix ekmett/lens#327 (build failure with -fsafe)
Fix warnings