Fixed Issue #23 . Now it compiles

just fixing some "trivial" mistakes...;-) 

missed #endifs , some deleted header functions, some changed names.....I've found the fixings watching old versions