Improve DLL mapping

This removes the need for need for compile time checks for Mono.