i686 build fixes

Hi,
please merge three unrelated commits for issues I stumbled upon while reviewing the Fedora numatop package:
1. fix some of the annoying printf warnings when compiling on 32 bits
2. fix unitialized memory access on Linux which causes numatop to think another instance is running
3. simple build fix to make it simpler to override link flags without having to repeat libraries