Fixed mobile build errors.