remove mptable typedefs
make amd tables static
use NULL for pointers, not 0
make static