Switch to using FoxLib for generic/common code