-fixed ptest macros for gcc4.8
- updated cshelf
- linux gcc fixes