Use the WelsEventOpen interface with an event name on windows as well

This unifies the event creation interface, even if the event
name itself is unused on windows, allowing use the exact same
code to initialize events regardless of the actual platform.

Some ifdefs still remain in the event initialization code, since
some events are only used on windows.
Use unnamed semaphores on linux

This avoids the risk of namespace collisions for named semaphores
(where the names are global for the whole machine), on platforms
where we strictly don't need to use the named semaphores.
Use an event name that contains the process id

This reduces the risk for namespace collisions if two processes
run the encoder simultaneously without address space layout
randomization.
Fix building android on x86

In 70360cb11, the ASM variable was moved to the x86-common file
even though the android build file didn't include neither
platform-arch.mk nor platform-x86-common.mk.

Instead of explicitly declaring ASM here, include platform-arch.mk
and remove setting of the flags that platform-arch.mk sets.

This is inspired by and based on a patch by Licai Guo.
Merge pull request #421 from mstorsjo/android-x86-build

Fix building android on x86
Merge pull request #417 from mstorsjo/unify-event-init

Unify the interface for creating/deleting event objects
rebase on latest code, refine android build
remove inter-deblock related parameters
modify welsenc.cfg for parameters update
Merge pull request #424 from ruil2/encoder_interface

remove inter-deblock related parameters--review request #148
Merge pull request #423 from licaiguo/refine-android-build-pr

rebase on latest code, refine android build