Local stdint lookup

Explicit cast for visual stdio
Move c to cpp due to Visual Studio not supporting c