JBOSS-49: cleaned patches and build scripts