Install resource policy on Harmattan

Tell the Resource Policy Framework to handle apkenv as a game, which
allows use of the +/- keys to control the sound volume on the Nokia N9.
Merge pull request #10 from raimue/harmattan-res-policy

Install resource policy on Harmattan
add support for loading resources

To be used by modules. Could be used for better --install support
(read icon path and real app_name), but as pandora doesn't use it,
I haven't implemented that.
don't hook longjump functions

glibc varsion is incompatible and corrupts stack
allow objects through JNIEnv_NewGlobalRef
add support for key input
properly support standard streams (stdout, ...)

More importantly, makes fprintf work and SuperHexagon can save it's
scores.
get rid of linker_format.c

Main problem with it is that it contains vsnprintf function,
and that gets linked to apkenv's calls instead of more complete
glibc's implementation.
add a module for openFrameworks/SuperHexagon

Super Hexagon is using modified version of openFrameworks
(http://www.openframeworks.cc)
Tested on humblebundle version.
add gitignore
Merge pull request #11 from liar/master

initial Marmalade SDK support (PvZ playable)
Properly bracket macro parameters in TOLOWER
Merge remote-tracking branch 'notaz/master'

Conflicts:
	apkenv.c
marmalade module: Add (empty) key_input function
modules/openframeworks.c: Build fix for Harmattan
Bump module version (key_init function added)
hook vsnprintf

bionic's version will call bionic's internal malloc/free and pthreads,
this will mess up glibc's state, plus lead to abort() call in bionic
(why was this commented out?)
wrap stat functions

'struct stat' is incompatible, and bionic's version cant be used too.
avoid debug prints in release mode
wog: increase apk_index size for 1.0.5 version

Also do a check for overflow instead of crashing, and increase
apk_index_pos only when needed.