Fix asd dependencies, cleanup useless and misplaced compilation options.