ifdef to handle getsockopt format requirements on windows