CLI compiles on Android and Linux (fix linker order)