fix warning
fix compilation on gcc 4.2
fix return type
use precise argument type
fix misnamed variable references
add missing files
move code using openssl into conditional compilation section
fix compilation for 32 bit architectures and gcc 4.2
fix compilation on gcc 4.2