small fixes

There's a library function to write out ints in binary that I initially missed.  Updated to use that.  Also, I realized that printing an error in the package init when systemd isn't available is not good behavior; that's been removed.