Add some resources and fix several build error