Cleanup compiler attributes, c++0x features and assert stuff