g2-common: Fix camera compilation

Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>