Adds boost serialization to compilation.