fix an compiling error on xcode. CMAKE_BUILD_TYPE is not available.
fix segmentation faults in +=, -= operators
Merge pull request #6 from norihiro-w/clang33-fix

fix erros