Fix preload on Linux and OSX