Fix build with giflib >= 5.1.0.
Use integers for mouse mappings and buttons 6+7 for horizontal scrolling

Fixes issue #143
Merge branch 'barthalion/master'
Configuration tweaks