Ref #385: fixed warnings in dynamic.c