Clang fixes related to Boost Serialization

The following fixes a few errors reported by Clang and seen by Boost Serialization script.