added configurable ENGINESDIR and OPENSSLDIR

use --with-enginesdir and --with-openssldir

ok beck@