Merge pull request #195 from chrox/master

add getVisiblePageCount api
Fix mupdf build.

HOSTCC means we need HOSTCFLAGS or bad things happen when you feed arm
arches to an x86 GCC ;).
Introduce per-target CFLAGS.

This rids us of the legacy Kindle compat crap we don't need on the K5.
There's still a few things to check though:

* I'm using a 'perfect' K5 TC, so that works, but depending on the TC
used for Kindle builds on the buildbot, we may need to reintroduce
some compat flags.

* I'm mostly sure every Kobo we care about runs on an A8, but if a valid
target kobo device doesn't, fix this.

* I have no idea what we want to do for Android, so go with generic
armv6, and hope the TC defaults to sane stuff.

(This also introduces a couple of extra targets, some of them mostly for
my own use, so I don't have to monkey patch each time, and some to get
rid of legacy stuff on Kindles).
Forgot to comment that.
Kill one FIXME.

Confirmed that the earliest Kobo Touch device was running on an A8.
Note that if we ever care about the first non-touch one, that won't do.
Possibly properly fix mupdf build
Really fix mupdf build.

The buildsystem always picks up what's in the env, so if the CFLAGS
in our env has march flags for the wrong arch => kablooey.
Merge pull request #196 from NiLuJe/master

Misc minor build tweaks.
Kill one Android FIXME...

After looking at the AOSP files, it does seem to default to soft or
softfp...
Merge pull request #197 from NiLuJe/master

Kill one Android FIXME...
Play with the refresh code a bit...
Kill debug
That looks wrong.

Yay if I make everything go 'splodey!
Update mxcfb-kindle.h

Merge w/ latest Touch kernel (5.3.7.1).
Update mxcfb-kindle.h

Frankenstein the PW2 version (5.4.3.2) in...
Try to figure out the lua ffi stuff...
Whee, refresh the ffi-cdecl stuff
Most important commit ever.
More Kindle screen refresh tweaks.

Use the same temp flag as Amazon on Touch devices.
Get rid of redundant output.

By checking waitpid's return value properly.