Fix OSX linker error in editor