Linux compilation fixes for rgvs