readtag.c: initial fixes for MinGW

no syslog on win32
SIGIO define missing under MinGW's signal.h
%ld expects long int