Fixed a compilation error in Linux
Index table in datastorage now use a union to store the index (int) in a
void*
Removed a warning
Added some error handling in put and set for datastorage