Move library definition and export to src folder for encapsulation and to allow export header to be generated on Windows.
Include missing stdint.h - no indirect inclusion exists on Windows.