1. Fix gnu compiler error. 2. Fix netbeans build error