Add BUILD_TESTS for cmake to make tests optional