compiles on os x, bugfixes in parse_target, parse_prereq, etc.