compiles and runs on OSX

all the filenames are still wrong though