OS X stuff and flvmeta change

Adds OS X support, swaps flvtool out for flvmeta, and a few other tweaks.