client: Some minor changes for the LD_PRELOAD library to avoid possibly uninitialised global state.