Added OS detection.  Needs testing.

This makes it work at least marginally on Linux.  Testing is needed to determine if it still works on Windows or not.

I tested on Linux - Ubuntu - 12.04 - Lua 5.0 - VLC from standard repository.