Added mail as shared lib.