Fixed a java8 specific causing the building of the project to fail.
Merge pull request #55 from tritania/fixes

Fixed a java8 specific causing the building of the project to fail.