attempt to fix md5 and other compile errors