fix compiler warnings
add a possibility to pass data string to subprocess’s stdin