fixes compilation errors/warnings
Signed-off-by: Sho Nakatani <lay.sakura@gmail.com>