Fixing Pinvokes For Compilation

- Need to use constants in attributes.