Add configure option to enable building unit tests