header warning fix
fix gcc compilation
fix linkage issue