Updated POM and removed bugs in compiling .tar  and .rpm distros