Build system reorganization
Fix Fly state
Enable multithreading