Fix Target platform.

* Fixes Target platform dependencies.
* Fixes a type on the event's features attributes.
* Adds generation of toString on Events.