fix all errors for build