linux fixes, linking libdl correctly not. debug and release are running now