fixed compile with -WEffc++ set