Fixes compilation issues on Android and Linux