Add extra flags to avoid building unneeded/unwanted stuff.
Just undefined unneeded features globally in standalone mode.
These are no longer needed.