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

Fix 1612, Rename, and do some changes in Makefile.in.