Working on mac

Thanks to @ntrrlz this code runs on a mac =)

This also works on Windows 8.1, Windows 7 (both 64 bits). Needs to test on a linux machine.

OBS: VLC won't work on 64 bit processes (needed to revert a commit) yet but the code is ready in case