add warnings + -g
still segfaults (why?)
platform_id is not an ID. hu.
fix segfault, of course