Cython 0.26 changes its compiler directive name from `embed_signature` to `embedsignature`. Hence an if-statement is added to facilitate compilation of Python wrappers using the new compiler directive name when Cython 0.26 is used. `_profiling_enabled` variable is also handled slightly more elegant.