Limit cycles vs. marginally stable linear systems