App: fix resources initialization
build: always link with -ldl