got generate_table to compile and run on freebsd