Added mcrypt to pre-req and fixed java sdk