Build.xml with loglinear pipeline

Few minor bug fixes and a build.xml that's log-linear compatible.