Android fix warnings

Fix build warnings in android build
My intention was to introduce general macro that could be used for all build configurations.