Added fallback if no platform-specific lib

also fixed marshalling of mdb_version