Compile boost with correct defines.