rs: Fix build with gcc 4.8

Change-Id: I5c486322b999d33cca29b9e38f8891dfb13be146