I believe you can get a job with the associated temporary residence permit, extend this as many times as necessary to meet the uninterrupted legal stay requirements, then apply for the permanent residence.
Getting citizenship is probably a bit harder but not impossible - about a thousand people get it in Poland each year by the decision of the president.