fix some "old"-builds in non standard environments