boost compatibility fix