Fix build file and warnings from compiler.