fix export_gencad.cpp