revert enable-debug for factory

 --enable-debug 
lead to failing compile of factory,sorry for that