Fixed linker flags not setup correctly