added middlemouse debug flag to remove it from the standard build