updates to build with security enabled.
Merge pull request #30 from vicenteg/secure

updates to build with security enabled.