fix gcc 4.7 build error
fix wrong name
enable static link for gcc