changes to compile SF on Linux