added MAP_FAILED chek in StackMap constructor