Revert "Fix compilation for boost random"

This reverts commit c5d103dbb00eb0e596b500eda44107085962e155.