Some changes added to compile and run with Java 6 and Java 7.

  - correction of errors with Javac 6:
    - target 1.5 and source empty.

Change-Id: I0e0587c6af5b304e8fa08524b8fb16195e50eefa