update to 3.1.1.GA and fix build failure