Added new thread to read from subprocess's stdout

Fixes https://github.com/prezi/gradle-haxe-plugin/issues/28