Removed reinterpret-cast dependency. Embedded the code from this library instead.