Remove MAKE_VENDOR flag.

Its behavior is now the default.
Remove useless variables.
Add strip_newline function.