Failed to build zephyr scan_adv example

Hi ,
following the tutorial Enabling PlatformIO and Zephyr on custom hardware | PlatformIO Labs
I could build and flash zephyr_ble_beacon example for nrf52833dk_nrf52833.Then I tried to build the example scan advertising from nrf zephyr project by simply copying and pasting the main file into the main.c and also replacing prof.config file. But it failed to build the project with the error that it could not find some functions like bt_le_adv_start or bt_enable. They are however as you can see in screenshot already defined in bluetooth.h!

The only problem I could think of is that in original example cmake file also has this line:

which I then also added to the cmake but I’m still getting the same error as before.

Any help is highly appreciated!