user_client: fix on mac/bsd