red-black tree: add conditional compilation code

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>