Fix some errors, add a build