Add c++ guards to bucket.h