A few build-related changes

Hi,

Here are some build-related changes.

I found those while trying to re-compile lms2012 in buildroot.

Best regards,

V.