cardhu: build correctly on OS X

 * Added linker compatibilty for building on OS X.

Change-Id: Ibc4886805b380b3a5417fd62ad37b6dbee4d3a51