remove empty msg_functions.c
use alternative to strndup() on WIN32