Fixed Serializable and Closable related compilation warnings.