Fix Android/Linux compilation

Well, for the native part at least.  Also some warning fixes.

-[Unknown]