let OpenSC compile without OpenSSL and without SM
use _setmode instead of _set_fmode in windows

now compiles with MinGW-w64
Formatting with spaces and returns in hex dump.
Fix a bug when writing public key
Merge branch 'master' of https://github.com/OpenSC/OpenSC