linux: fix parsing of xrandr output for rare screen configurations

fixes not detecting the current mode if it is not the first on in its list
fixes crash when preferred mode is not current mode
Merge pull request #88 from tfg13/master

linux: fix parsing of xrandr output for rare screen configurations
Code clean-up and minor optimizations. Also made sure that the current mode is always first.
Fixed optional error check.
Backported LWJGL 3's handling of System.loadLibrary errors. Resolves #87.
OpenGL ES build fixes.
Ported annotation processing from apt to javac.

This is a manual merge of request #86 by @b23prodtm. The original patch is fantastic, but as expected has a few issues that will be fixed in subsequent commits.
Automatic code reformatting.

Nothing to see here, just a cleanup so that subsequent commits are cleaner.
Made the javac-based Generator compatible with JDK 6.
Restored check that skips generation if the source template has not changed.

Note that javac still always recompiles everything. This makes the build process slower than before (apt was using the already compiled templates as input). Will investigate some other time if this can be mitigated.
Fixed field/method order so that javac output matches apt output.
Finished work on the annotation processing port from apt to javac.

LWJGL now requires JDK 6 or later to build, but will continue to work on Java 5. In this commit: removed native file "last modified time" handling.
Merge branch 'master' of https://github.com/LWJGL/lwjgl into LWJGL-master

Conflicts:
	platform_build/build-generator.xml
	src/java/org/lwjgl/util/generator/FieldsGenerator.java
	src/java/org/lwjgl/util/generator/GeneratorProcessor.java
	src/java/org/lwjgl/util/generator/GeneratorVisitor.java
	src/java/org/lwjgl/util/generator/JNITypeTranslator.java
	src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java
	src/java/org/lwjgl/util/generator/JavaTypeTranslator.java
	src/java/org/lwjgl/util/generator/NativeMethodStubsGenerator.java
	src/java/org/lwjgl/util/generator/NativeTypeTranslator.java
	src/java/org/lwjgl/util/generator/PostfixTranslator.java
	src/java/org/lwjgl/util/generator/RegisterStubsGenerator.java
	src/java/org/lwjgl/util/generator/SignatureTranslator.java
	src/java/org/lwjgl/util/generator/TypeInfo.java
	src/java/org/lwjgl/util/generator/TypeMap.java
	src/java/org/lwjgl/util/generator/TypedefsGenerator.java
	src/java/org/lwjgl/util/generator/Utils.java
	src/java/org/lwjgl/util/generator/openal/ALTypeMap.java
	src/java/org/lwjgl/util/generator/opencl/CLCapabilitiesGenerator.java
	src/java/org/lwjgl/util/generator/opencl/CLGeneratorProcessor.java
	src/java/org/lwjgl/util/generator/opencl/CLPDCapabilitiesGenerator.java
	src/java/org/lwjgl/util/generator/opencl/CLTypeMap.java
	src/java/org/lwjgl/util/generator/opengl/GLCapabilitiesGenerator.java
	src/java/org/lwjgl/util/generator/opengl/GLESCapabilitiesGenerator.java
	src/java/org/lwjgl/util/generator/opengl/GLESGeneratorProcessor.java
	src/java/org/lwjgl/util/generator/opengl/GLESTypeMap.java
	src/java/org/lwjgl/util/generator/opengl/GLGeneratorProcessor.java
	src/java/org/lwjgl/util/generator/opengl/GLReferencesGeneratorProcessor.java
	src/java/org/lwjgl/util/generator/opengl/GLTypeMap.java
	src/java/org/lwjgl/util/generator/opengl/GLvoid.java