Solve -O3 compliation error by make constructor explicit