Update sdb, simplify some makefiles