First set signature, then add security attributes as it is done in CreateConstructorBuilder method.
Fixes #507
Merge pull request #509 from rsdn/FixSecurityAttribute

Fix putting FileIOPermissionAttribute