made a few dependencies optional
refused to compile with MSVC2010
hack to get it to compile with MSVC2010 (Express)