Fixed errors and missing symbols on Mac Build