added fixes for jdk6 support and a travis build config