renamed min and max macros in glib-core/bd.h in order to avoid conflicts with std::min and std::max