Lens

Added support for lenses and generics using the lens package.
Added parsing of scopes (using lenses).
Fixed building on MacOS.