Fixed bug that caused runtime error when converting OBJ file on OS X.