common: fix for clearing environment vars in BSD

Conflicts:
	common/os_calls.c (indent changes)