fixed compiler warnings (partially submitted)

Signed-off-by: Frank Morgner <morgner@informatik.hu-berlin.de>

PR-222: commit https://github.com/frankmorgner/OpenSC/commit/0b567dbaa83741675497a76d867645675f57262c
partially submitted by Viktor Tarasov
fixed incompatible function usage

Signed-off-by: Frank Morgner <morgner@informatik.hu-berlin.de>
westcos: fixed initialization of driver data

Signed-off-by: Frank Morgner <morgner@informatik.hu-berlin.de>

Updated by Viktor Tarasov
dnie: dont ignore error on sm free operation

Signed-off-by: Frank Morgner <morgner@informatik.hu-berlin.de>
cardos,incrypto34: restored semantics of select_pin_reference
fixed one more warning