Fix the Linux makefile.am and modify modelcompiler to only redirect stdio when doing something useful.