Fix FOSS compilation