Improving logging of certificate handling.
build: 'declaration-after-statement' is an error

not allowed in Windows VS, so make it also not allowed with GCC

Thanks to Martin,
https://github.com/OpenSC/OpenSC/pull/156#issuecomment-17538586
Merge from OpenSC