fix build frontend.cpp