add brickred exchange compile and c++ support