fixed warnings on Android and windows