add missing linker file, remove unnecessary X11 and so on dependancies