fix compiling stdin not working