Add annotation to fix building from Eclipse.
Fix compiler warning.
Improvement which should hopefully help with bug #693607 - MupdfActivity crash when rotating the device.

When cancelling a render async task, we now wait for it to actually finish
before continuing. The benefit of this is that we should be able to guarantee
that its Bitmap becomes eligible for GC before we continue to create any
new bitmaps.

This should hopefully help with the OOM errors seen when rotating
the device and trying to create the new bitmaps.

To prevent the UI thread from being blocked for too long while we're waiting
for the async task to finish, we use a fz_cookie and set the 'abort' flag to
request the render be stopped as soon as possible.
Ignore .DS_Store files generated by the Mac.
Fix crash when dismissing 'Cannot open document' dialog with back button, then pressing back button again.

I've also added an onCancel() handler, so that the back button only needs
to be pressed once to return to the file picker view.

Spotted while looking at bug #693719 - Attached PDF file does not display (edit)
Fix for bug #695229 - open document from byte array doesn't work, but saving to file and open from file works

Patch was supplied by gong_su@hotmail.com. Thanks!
Prevent the creation/destruction of the fz_cookies from trampling the env/clazz pointers in globals.

The env/clazz pointers are stashed in the globals structure so that they can
be accessed by callback functions in mupdf.c (such as bufferStreamSeek()).

The intention is that only one thread (i.e. the AsyncTask background thread)
reads/writes these stashed pointers. Because cookies are created/destroyed
in the main thread, we add a new version of get_globals() which doesn't trample
these pointers.