common: fix for clearing environment vars in BSD

Conflicts:
	common/os_calls.c (indent changes)
Merge pull request #177 from metalefty/v0.6

Apply aa983d2b to v0.6 branch