Fix ctypes warnings
Merge pull request #168 from tomaka/fix-ctypes

Fix ctypes warnings