Don't tie optional dependencies to the platform
Makes it easier to test the Android build scenario on Linux.