fix os x compiling, update dependencies