Adding guards to HPX.