Fixed templating issues in handler and handler_impl.
Updated flags for clang and gcc.
Merge pull request #3 from ruthafjord/master

Updated for clang.