add build tools and fix code style errors