fix bug 4547, '--enable-tests makes compilation fail'