Make library extension platform specific

Here we go again