Define ANDROID_NDK and APPLE_IOS when building the lib with the make build system

Use a separate define for renaming the main function, to allow building h264dec and h264enc as standalone binaries (instead of including them in the full test apps).

Alternatively, the iOS build configuration could be updated to skip building them, just as for android, but since they easily can be built, they can be useful for testing in some cases.