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

Rename, and do some changes in Makefile.in.