libbladeRF & bladeRF-cli: [WIP] Fixes for Windows build

Added get_timestamp() implementation, cleaned up warnings, address some portability issues.
Merge branch 'dev-flash_backup_restore' of github.com:Nuand/bladeRF into dev-flash_backup_restore