Fixed compilation errors, improved BeansBox interface detection.