fix template for gcc