Move private variables and functions to alert.c and make static.