add release flag to makefile.shared
tests: use correct format string parameter for 64bit values on windows