Trim and check for trailing '.' before appending the links.
Merge pull request #2 from matzon/master

LWJGL 2.x API
Merge branch 'master' of https://github.com/LWJGL/lwjgl3
Added callback clean-up code.
Added GL43 minor version.
Removed \t before TRs and LIs.
Properly escape '_' in JNI class-paths and function names.
Simplified GeneratorTarget hierarchy.
Added extension checks.
Added support for <th>.
Allow '_' in argument types.
Added toHexString for long values.
Added Pointer class and removed getPointerSize & getPointerSizeShift from PointerBuffer.
Code generation improvements and better compile-time DSL validation.
Added support for weak global references.
Improved pointer-to-pointer code layout.
Optimized org.lwjgl.Pointer static import.
Allow optional "#define " before token definitions.
Moved elementType from SingleValue to PointerType.
Added support for custom Java imports. This is useful for references across
client APIs (e.g. CL/GL interop).
Support optional /* */ around argument names. Useful if we paste from a header file.
Added support for virtual (Java-only) arguments.