added last time accessed field for gbItems, compiles for OSX

I added a last_access_time field, modified the gbMemAvailable() function and updated the query methods to update last_accessed_time.