generate_mt: fixed build for linux