fix imext.cpp on linux