Typos fixes and honor LDFLAGS

Self explaining, thanks in advance for merging!