Minor changes to allow ftl to be build on a Mac