fix building errors