fix compilation for mcrypt