Fixes on linker flags