Fix the build:

1. fix incorrect pointer class in scd_base_rm_fns.c

2. add missing files