[BUG] Fix error output from compiling. 

err_file file pointer is at the end of file, so it does not read anything. Applying seek before fixes that.