few changes for linux systems and ctype libs