add a few patches to compile