Use PRI specifiers in printf formats
Fix unitialized memory access
Makefile: add LDFLAGS for overriding link settings
Merge pull request #4 from keszybz/master

i686 build fixes