fosterbtreeg.c for linux only