Fix build of inf-native-socket.c on Windows
Fix an allocation problem in inf_text_fixline_buffer_buffer_insert_text()
Fix possible read-after-end in inf_text_fixline_buffer_buffer_insert_text()