move gappa and sdf2table back to lib