Ex-Buildings Department boss Eric Ulrich has political ties to a former member of a Queens social club that was recently busted by the feds for acting as a front for a mob-run illegal gambling den, according to court papers and other public records reviewed by the Daily News.