Add SetLastError to DllImport statements.
Merge pull request #49 from robinsedlaczek/Issue43-SetLastError

Add SetLastError to DllImport statements.