Fix gae lib, so as it uses long in ItemFactories