Fix wide screen drawing (fixes #121)
Auto detect supported resolutions (fixes #66)

Only tested on Windows PC; not sure if it
will work on Android
Fix compilation error of ssize_t.