Initialize member variables in constructor

Based on TortoiseSVN revision 24985

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Use %Id instead of %ld for pointers

Based on TortoiseSVN revision 24986

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>