Allow to use Java SE 8

This pull request addresses #374.