Fix incorrect handling of name.

I.e. don't set the name of the type as the default name of the entity
when creating it.
Make it easier to find incorrect materials.
Use a more updated boost detection macro.

As found on https://github.com/tsuna/boost.m4 .
This should fix issues with correctly finding all required libraries.