No shebang

This PR fixes #2423 by removing the shebang in files that belong to the library code. Other files (under directory `examples` mainly) are not affected.