deb and rpm packages should install to /usr regardless of what prefix is set to.
This allows making packages along side development without having to set special variables.
correct incorrect logic from previous change
corrections to bounding box calculations to fix issues with text and soundings in accelerated pans
int for keycodes type because char is unsigned on arm processors