fixed length of abData for pc/sc pin commands
fixed wrong memory access
fixed even more compiler warnings
dont call _set_fmode in mingw