Changed from C to C++

Signed-off-by: Ilya Churaev <ilyachur@gmail.com>