fix undefined reference problem in flush_gc_msgs