Fixed compiler warnings for cython.

Implicit declarations due to missing header includes.
Parse myconfig for use in setup.py.