Allows android to compile when headless feature is enabled.