build fix: use native string functions

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
build fix: define ptr as pointer

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
build fix: remove dead code

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
build fix: disable check for currently dead code

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>