use gcc46, fixed converting code