Scala 2.10, better platform detection
docs