Add preinit plugin to enable core dumps

Add preinit plugin to enable core dumps

Signed-off-by: Matti Kosola <matti.kosola@jolla.com>