Solved problem of compilation under Mac OS X and new changes in API & corrected how private variables are declared.