Fixed compilation issues for printer