buildsystems, build: Better strip debuginfo implementation

Code refactoring and put debinfo into separate targets for
runtime and devel name respectively runtime-debug and devel-debug.