potential fix for scoped_db_conn_test
add windows headers, use ifdef for platforms