Add path for compilation on Mac OSX and fix UTF-8 encoding problem