Adding missing ctypes function declarations (mainly for os x)