Added NSAttributeString support.

This allows for inline text attachments (i.e. inline images).
Also fixed a warning in 64 bit compilation.