Finally compiles on OS X

    A lot of clean is still required, it's pretty hit or miss right now
    Tests need a thorough scrub down, removing any linux assumptions
    Currently, there's no ability to write to etc files for OS X