Added explicit C includes for Windows compilation