gcc compilation optimized. 10% slower than msvc