Allows android to compile when headless feature is enabled.
Merge pull request #137 from glennw/android-headless-compile

Allows android to compile when headless feature is enabled.
Added headless rendering on osx