Android & Linux builds and some cleanups & fixes.

Flip SVG to the right way around.
Pass string references as const.
Add required includes.
Use proper limits instead of MAXFLOAT.