Fixed build problems on bluetooth app because not recognize some -flags