fix windows problems following Lorenzos advice
restore backward compatibility with predefined options that are no longer available in the BDTs
that should take care of the last coverity complaints