Solution is as following:
Create an entitlment called ent.plist (or whatever name) that contains the following line:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
Code sign your application using the --entitlement ent.plist
Done!