use xplatform safe printf styles

since %d defined a long int on some platforms and a int on other etc you
will get compiler warnings on different machine types if you dont have
these changes, see:

http://stackoverflow.com/questions/4961115/compiler-warning-about-printf-long-unsigned-int-and-uint32-t
http://stackoverflow.com/questions/12120426/how-to-print-uint32-t-and-uint16-t-variables-value

bloody xcompiling !
Merge pull request #5 from othane/node_serializer

use xplatform safe printf styles