Make it compile under g++-4.4; throw exception for random gamma