Fixing build errors with numpy