Added support for serializable exceptions for windows library.