Resolving NAnt compilation issues plus some warnings