make DEBUG an int
SAFE_DYNCALLS option