Added missing headers for BSD-like systems