patch boost the correct way