Nasty workaround for linking error