Explicitely enforce Java 5 as target

This fixes http://bugs.debian.org/729515
Merge branch 'release'
Fix compilation with VS 2013

C++11 seems to requires <algorithm> header to define std::min/std::max

Thanks to Lars Matthäuson the ML for report
Merge branch 'release'