Add v8 version detection to configure.ac

Detect if v8 version > 3.19 and define macro V8_POST_3_19_API

Change-Id: Id97e2516e0d06706b3cf5649dbd5743923eb9de3
Add support for v8 version - 3.22.23

Some of the v8 APIs have changed and newer versions does not support
copyable persistence objects. This commit conditionally uses older API
or newer API based on a macro definition `V8_POST_3_19_API`.

Change-Id: I37f45e59e0ee676b2cc1ac973883667187f7e03e