Add #undef before #define to fix redefinition warning
Fix incompatible pointer type warning by changing type of print_statuschange to match parameter of userstatus callback.