support multiple app libs with deps

Some apps come with multiple libraries that depend on each other.
To get dependencies easily resolved, extract all libs to data dir and
add that dir to linker's search path.

Also drops unnecessary sync() for call pandora.
move recursive_mkdir to avoid a warning
start a lib blacklist

Some games come with "trash" libs that are never loaded by the game,
plus they have incomplete dependencies. Start a blacklist of such libs.
marmalade: more complete mixer implementation
marmalade: more complete music player implementation
add more gles wrappers

used by s4ep1
pandora: only do vsync if we are fast enough

gives some extra fps for demanding games
hook parts of EGL library
implement a few more pthread functions
more verbose jnienv logging

useful when starting new modules
implement array functions in jnienv, clean up modules
Merge pull request #18 from notaz/master

further work on compatibility
Merge pull request #19 from notaz/wip

more wip work on hooked functions and jnienv
provide fake EGL display
log thread things in debug build
hook rewind, rm clearerr duplicate
Merge pull request #22 from notaz/review_fixes

Review fixes + one more hook
rename glesv2 functions, load some of them dynamically

the dynamically loaded ones are those that conflict with GLESv1.
allow gles+gles2 linking at the same time (v3)

Compile both GLESv1 and GLESv2 hooks at the same time, load symbols
that intersect between GLESv1 and GLESv2 dynamically on GLESv2 side
from correct lib. There is still possibility to compile GLESv1 or
GLESv2-only version by modifying the makefile.

Osmos is linked to both libGLESv1_CM.so and libGLESv2.so and
uses symbols from both, so old GLES=x way was not enough.
fix invalid getc -> putc hook