Fix #1612 Rename .rc to .rs, and relevant changes in Makefile.in

Rename *.rc to *.rs in components directory, and do some relevant changes in Makefile.in