Add JavaApplicationStub for building on non OS X platforms