added windows versions of callbacks.c