vslsmas: Support a compilation under Linux and OSX.

Cross-compilation is also possible.