[bb10] Detect Cascade Library and clean up main file

Look for Cascade and bb10 library and some clean up for main.cpp file