Problem compiling orocos-rtt 1.12.1 with clang or gcc4.7

Hi, with both clang or gcc4.7 I get this error compiling orocos-rtt 1.12.1. I think the problem is that a function called from a template is defined after the template. The workaround in gcc is specifying -fpermissive

In file included from /usr/include/boost/intrusive_ptr.hpp:16:0,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/DataSourceBase.hpp:43,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/DataSource.hpp:47,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/ConditionBoolDataSource.hpp:42,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/ConditionBoolDataSource.cpp:37:
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of ‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T = RTT::DataSourceBase]:
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/AttributeBase.hpp:83:40:   required from here
/usr/include/boost/smart_ptr/intrusive_ptr.hpp:101:23: error: ‘intrusive_ptr_release’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

no workaround in gcc4.7

I just realized that with -fpermissive it just workarounds some errors. Not all. I get the following error compiling /StateMachineProcessor.cpp

In file included from /usr/include/boost/intrusive_ptr.hpp:16:0,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/DataSourceBase.hpp:43,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/ProgramInterface.hpp:43,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateInterface.hpp:48,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachine.hpp:42,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.hpp:42,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.cpp:40:
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of ‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T = RTT::ListLockFree<boost::shared_ptr<RTT::StateMachine> >::StorageImpl]:
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/impl/../ListLockFree.hpp:445:21:   required from ‘void RTT::ListLockFree<T>::apply(Function) [with Function = boost::_bi::bind_t<bool, boost::_mfi::mf0<bool, RTT::StateMachine>, boost::_bi::list1<boost::arg<1> > >; T = boost::shared_ptr<RTT::StateMachine>]/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.cpp:62:60:   required from here
/usr/include/boost/smart_ptr/intrusive_ptr.hpp:101:23: error: no matching function for call to ‘intrusive_ptr_release(RTT::ListLockFree<boost::shared_ptr<RTT::StateMachine> >::StorageImpl*&)/usr/include/boost/smart_ptr/intrusive_ptr.hpp:101:23: note: candidates are:
In file included from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachine.hpp:47:0,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.hpp:42,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.cpp:40:
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/EventProcessor.hpp:95:22: note: void RTT::detail::intrusive_ptr_release(RTT::detail::EventCatcher*)
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/EventProcessor.hpp:95:22: note:   no known conversion for argument 1 from ‘RTT::ListLockFree<boost::shared_ptr<RTT::StateMachine> >::StorageImpl*’ to ‘RTT::detail::EventCatcher*’
In file included from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/Handle.hpp:42:0,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachine.hpp:46,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.hpp:42,
                 from /home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/StateMachineProcessor.cpp:40:
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/impl/signal_base.hpp:116:22: note: void RTT::detail::intrusive_ptr_release(RTT::detail::connection_base*)
/home/dani/Projects/lucid/palBuild/orocos-rtt-1.12.1/src/impl/signal_base.hpp:116:22: note:   no known conversion for argument 1 from ‘RTT::ListLockFree<boost::shared_ptr<RTT::StateMachine> >::StorageImpl*’ to ‘RTT::detail::connection_base*