Fix link libraries order.

GNU ld usually does a single pass over libraries to find dependencies, so
it is necessary to list libraries on dependency order.

This prevents build failure due missing symbols on Linux.
Fix glMapNamedBufferRangeEXT'range in gl-430-direct-state-access-ext test.

gl-430-direct-state-access-ext was mapping 128 bytes, but writing 512
bytes.

It seems most OpenGL implementations don't notice, but this was causing
apitrace to only trace part of the written data.
Merge pull request #26 from jrfonseca/master

Couple of fixes I noticed while testing ApiTrace with these samples.