fixed compiler bugs and added support for dynamic reconfigure