Fix compilation issues on some targets
Adds support for browser gamepad